import axios from "@/utils/request";

//账号列表
export const userslistReq=(params)=>axios({ 
        url:'/users/list',
        params
})

//根据id获取账号详细信息
export const usersgetbyidReq=(id)=>axios.get('/users/getbyid',{
    params:{id}
})

//账号编辑
export const userseditReq=(params)=>axios({
    url:'/users/edit',
    params
})

//账号列表模糊搜索
export const userssearchReq=(params)=>axios({
    url:'/users/search',
    params
})

//全账号管理-批量删除账号
export const usersbatchdelReq=(ids:any)=>axios({
    url:'/users/batchdel',
    method:'post',
    data:{ids}
})

//全账号管理-删除账号
export const usersdelReq=(id)=>axios.get('/users/del',{
    params:{id}
})